home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr31 / split60f.zip / SPLITPAT.BAT < prev   
DOS Batch File  |  1993-05-23  |  2KB  |  76 lines

  1. echo off
  2. cls
  3. echo:
  4. echo Uses DEBUG.COM to patch SPLIT from "CTL" back to "¢T£" control extension.
  5. echo:
  6. if %1' == ' goto info
  7. if exist %1.exe goto continue
  8.  
  9. :nofiles
  10. echo One or more files are missing!
  11. echo:
  12. echo   "DEBUG.COM"  and  "%1.exe"  must be present on your system.
  13. echo:
  14. goto info
  15.  
  16. :continue
  17.  
  18. dir %1.exe
  19. echo:
  20. echo If "%1.exe" is not 22847 bytes long, you should quit NOW!!
  21. echo:
  22. echo Press "Ctrl-Break"  key NOW if you wish to terminate this action.
  23. echo (Any other key will allow the modification of "%1.exe"):
  24. echo:
  25. pause
  26.  
  27. echo e247d >modsplit.scr
  28. echo 9b  9c >>modsplit.scr
  29. echo e5490 >>modsplit.scr
  30. echo f5 e1 5c 6e >>modsplit.scr
  31. echo n%1.new >>modsplit.scr
  32. echo w >>modsplit.scr
  33. echo q >>modsplit.scr
  34.  
  35. if not exist modsplit.scr goto nofiles
  36.  
  37. ren %1.exe %1.xxe
  38. debug %1.xxe < modsplit.scr
  39. ren %1.xxe %1.exe
  40. if not exist %1.new goto nofiles
  41.  
  42. :finish
  43. del modsplit.scr
  44.  
  45. if not exist %1.exe goto nofiles
  46. if exist %1.olx del %1.olx
  47. ren %1.exe %1.olx
  48. if exist %1.olx echo Original "%1.exe" was saved as "%1.olx"
  49. if exist %1.new ren %1.new %1.exe
  50. echo:
  51.  
  52. echo done.
  53. goto end
  54.  
  55. :info
  56. echo   SPLIT.EXE now uses ".CTL" instead of ".¢T£" as the extension of
  57. echo   its control file.  This was done due to problems some systems
  58. echo   and programs had with high-bit characters in filenames. SPLIT
  59. echo   versions back to v5.19 are compatible with the ".CTL" extension.
  60. echo:
  61. echo   If the new ".CTL" extension conflicts with other files on your
  62. echo   system using that extension, you may patch SPLIT.EXE with this
  63. echo   batch file to return to ".¢T£" as the control file extension.
  64. echo:
  65. echo   SYNTAX:   %0 prog
  66. echo:
  67. echo   "prog" = basename (no extension) of the SPLIT.EXE you are modifying.
  68. echo:
  69. echo   Example:  "%0 split"  patches "split.exe" to make
  70. echo   control files with ".¢T£" instead of ".CTL" extension.
  71. echo:
  72. echo Caution:  Save your original copy of SPLIT.EXE.
  73.  
  74. :end
  75. echo:
  76.